home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / misc / unix / unix_boot.lha / src / bootinfo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-09  |  1.3 KB  |  51 lines

  1. /*
  2.  *    Copyright (C) 1991, Commodore Business Machines, Inc.
  3.  *
  4.  *    This file defines the interface between the boot code and
  5.  *    the kernel.
  6.  */
  7.  
  8. #ifndef NAUTO        /* Number of configuration slots */
  9. #define NAUTO    16    /* Also in "amigarom.h" in kernel includes */
  10. #endif
  11.  
  12. /*
  13.  * Boot methods:
  14.  *
  15.  * A2620:
  16.  *    D0 = 1
  17.  *    D1 = Nothing
  18.  *    Autoconfig table at 0x78080 (struct acon as per amigarom.h)
  19.  *
  20.  * EXEC0:
  21.  *    D0 = 2
  22.  *    D1 = Pointer to autoconfig table struct ConfigDev[16]
  23.  *        (struct ConfigDev as per libraries/configvars.h)
  24.  *
  25.  * EXEC1:
  26.  *    D0 = 3
  27.  *    D1 = Pointer to struct bootinfo (below)
  28.  *
  29.  */
  30.  
  31. #define A2620 1                /* A2620/A2630 ROM */
  32. #define EXEC0 2                /* Exec boot method 0 */
  33. #define EXEC1 3                /* Exec boot method 1 */
  34.  
  35. /*
  36.  *    The following structure defines the information passed to
  37.  *    the kernel for boot method 3.  The BootData structure is
  38.  *    defined in bootdata.h.  It is currently not clear whether
  39.  *    ConfigDev and MemHeader will come from kernel/boot private
  40.  *    include files, or standard AmigaDOS include files.
  41.  */
  42.  
  43. struct bootinfo {
  44.     struct ConfigDev autocon[NAUTO];    /* Autoconfig devices */
  45.     struct MemHeader memory[NAUTO];    /* Memory regions */
  46.     unsigned char keystates[16];    /* Keyboard state */
  47.     struct BootData bootdata;        /* Info about text & data */
  48.     unsigned char reserved[256];
  49. };
  50.  
  51.